/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.member;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 绑定银行卡管理Entity
 * @author 王磊
 * @version 2016-11-15
 */
public class MemberBankcard extends DataEntity<MemberBankcard> {
	
	private static final long serialVersionUID = 1L;
	protected String memberId;		// 用户id
	protected String idName;		// 姓名
	protected String idNumber;		// 身份证号
	protected String cardNumber;		// 卡号
	protected String phoneNumber;		// 电话号码
	protected String bankName;		// 银行
	protected String cardName;		// 卡名称
	protected String cardType;		// 卡类型
	
	public MemberBankcard() {
		super();
	}

	public MemberBankcard(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	@Length(min=1, max=255, message="姓名长度必须介于 1 和 255 之间")
	public String getIdName() {
		return idName;
	}

	public void setIdName(String idName) {
		this.idName = idName;
	}
	
	@Length(min=1, max=255, message="身份证号长度必须介于 1 和 255 之间")
	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	
	@Length(min=1, max=255, message="卡号长度必须介于 1 和 255 之间")
	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}
	
	@Length(min=1, max=255, message="电话号码长度必须介于 1 和 255 之间")
	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	@Length(min=0, max=255, message="银行长度必须介于 0 和 255 之间")
	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	
	@Length(min=0, max=255, message="卡名称长度必须介于 0 和 255 之间")
	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}
	
	@Length(min=0, max=255, message="卡类型长度必须介于 0 和 255 之间")
	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}
	
}